package lock

import (
	"fmt"
	"sync"
)

var sumCount int64

func Problem() {
	var wg sync.WaitGroup
	wg.Add(1000)
	for i := 0; i < 1000; i++ {
		go func() {
			defer wg.Done()
			for j := 0; j < 10; j++ {

				sumCount++
			}
		}()
	}
	wg.Wait()
	fmt.Println(sumCount)
}
